package com.sh_rw.label.bean;

/**
 * 设备基本参数
 * Created by rw-duke on 2018/4/8.
 */

public class BasicParam extends BaseBean {
    private String dataInterval;//数据包间隔
    private String heartbeatInterval;//心跳间隔
    private String gpsInterval;//gps间隔
    private String filterPattern;//过滤模式
    private String filterTime;//过滤时间
    private String buzzer;//蜂鸣器开关
    private String baudRate;//波特率
    private String reply;//回复
    private String rev1;//保留位
    private String rev2;//保留位
    private String rev3;//保留位
    private String rev4;//保留位
    private String rev5;//保留位
    private String rev6;//保留位
    private String rev7;//保留位
    private String rev8;//保留位

    public String getDataInterval() {
        return dataInterval;
    }

    public void setDataInterval(String dataInterval) {
        this.dataInterval = dataInterval;
    }

    public String getHeartbeatInterval() {
        return heartbeatInterval;
    }

    public void setHeartbeatInterval(String heartbeatInterval) {
        this.heartbeatInterval = heartbeatInterval;
    }

    public String getGpsInterval() {
        return gpsInterval;
    }

    public void setGpsInterval(String gpsInterval) {
        this.gpsInterval = gpsInterval;
    }

    public String getFilterPattern() {
        return filterPattern;
    }

    public void setFilterPattern(String filterPattern) {
        this.filterPattern = filterPattern;
    }

    public String getFilterTime() {
        return filterTime;
    }

    public void setFilterTime(String filterTime) {
        this.filterTime = filterTime;
    }

    public String getBuzzer() {
        return buzzer;
    }

    public void setBuzzer(String buzzer) {
        this.buzzer = buzzer;
    }

    public String getBaudRate() {
        return baudRate;
    }

    public void setBaudRate(String baudRate) {
        this.baudRate = baudRate;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public String getRev1() {
        return rev1;
    }

    public void setRev1(String rev1) {
        this.rev1 = rev1;
    }

    public String getRev2() {
        return rev2;
    }

    public void setRev2(String rev2) {
        this.rev2 = rev2;
    }

    public String getRev3() {
        return rev3;
    }

    public void setRev3(String rev3) {
        this.rev3 = rev3;
    }

    public String getRev4() {
        return rev4;
    }

    public void setRev4(String rev4) {
        this.rev4 = rev4;
    }

    public String getRev5() {
        return rev5;
    }

    public void setRev5(String rev5) {
        this.rev5 = rev5;
    }

    public String getRev6() {
        return rev6;
    }

    public void setRev6(String rev6) {
        this.rev6 = rev6;
    }

    public String getRev7() {
        return rev7;
    }

    public void setRev7(String rev7) {
        this.rev7 = rev7;
    }

    public String getRev8() {
        return rev8;
    }

    public void setRev8(String rev8) {
        this.rev8 = rev8;
    }

    public String buildInstructions(){
        StringBuilder instructions = new StringBuilder();
        instructions.append(head);
        instructions.append(length);
        instructions.append(devId);
        instructions.append(cmd);
        instructions.append(sn);
        instructions.append(encryption);
        instructions.append(dataInterval);
        instructions.append(heartbeatInterval);
        instructions.append(gpsInterval);
        instructions.append(filterPattern);
        instructions.append(filterTime);
        instructions.append(buzzer);
        instructions.append(baudRate);
        instructions.append(reply);
        instructions.append(rev1);
        instructions.append(rev2);
        instructions.append(rev3);
        instructions.append(rev4);
        instructions.append(rev5);
        instructions.append(rev6);
        instructions.append(rev7);
        instructions.append(rev8);
        instructions.append(checkSum);
        return instructions.toString();
    }
}
